package com.example.demo.config;

import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.servlet.mvc.method.annotation.AbstractJsonpResponseBodyAdvice;

/**
 * date:2017/9/27
 * time:11:10
 * author:LYH
 */
@ControllerAdvice(basePackages = "com.example.demo.controller")
public class JsonpAdvice extends AbstractJsonpResponseBodyAdvice {
    public JsonpAdvice(){
        super("callback","jsonp");
        System.out.println("controller aop");
    }
}
